package SwingModel;

import java.io.File;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import JDBC.CmsDatabaseConnection;

public class CmsCourse {

	private String courseID;
	private String courseTitle;
	private List<CmsUser> listOfPeople;
	//private List<CmsQuiz> listOfQuiz;
	//private List<CmsAssignment> listOfAssignment;
	//private List<CmsAnnouncement> listOfAnnouncement;
	//private List<CmsGrade> gradeBook;
	private List<CmsLecture> listOfLecture;
	
	public CmsCourse(String courseID, String courseTitle){
		this.courseID = courseID;
		this.courseTitle = courseTitle;
		
		this.listOfLecture = new ArrayList();
		
		//listOfLectureMaterial = null;
		//gradeBook = null;
		//listOfAssignment = null;
		//listOfQuiz = null;
		
		//fetchListOfPeople();
		//fetchListOfAnnouncement();
	}
	
	//---------------------------------------------------------
	//GETTERS AND SETTERS:
	//---------------------------------------------------------
	public String getCourseID() {
		return courseID;
	}

	public void setCourseID(String courseID) {
		this.courseID = courseID;
	}

	public String getCourseTitle() {
		return courseTitle;
	}

	public void setCourseTitle(String courseTitle) {
		this.courseTitle = courseTitle;
	}

	//---------------------------------------------------------
	//METHOD: getListOfPeople
	//---------------------------------------------------------
	/**
	 * This method fetch the list of people for the course from
	 * the database, update the current list of People for the
	 * instance of this CmsCourse, and return the updated list
	 * of People
	 * 
	 * @return listOfPeople - updated list of people
	 */
	

	
}
